package com.qingke.besuper.util;

import java.util.Scanner;

public class BeSuperConsole {
	private static Scanner sc = new Scanner(System.in);
	
	private BeSuperConsole(){
		
	}
	
	public static void print(){
		
	}
	public static void println(){
		System.out.println();
	}
	public static void println(String str){
		System.out.println(str);
	}
	public static String promptNotEmpty(String str){
		String input;
		while(true){
			System.out.print(str);
			input=sc.nextLine();
			if(input.trim().equals(""))
				System.out.println("Please don't input empty string.");
			else
				break;
				
		}
		return input;
	}
	public static String prompt(String str){
		String input;
		while(true){
			System.out.print(str);
			input=sc.nextLine();
			if(input.trim().equals(""))
				continue;
			break;
		}
		return input;
	}
	public static void close(){
		sc.close();
	}
}
